package com.zelix;

import java.util.EventObject;
import javax.swing.JList;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

class cp
    implements ListSelectionListener
{

    z2 a;
    vu b;

    cp(vu vu1, z2 z2_1)
    {
        a = z2_1;
        b = vu1;
    }

    public void valueChanged(ListSelectionEvent listselectionevent)
    {
        if(listselectionevent.getValueIsAdjusting())
            return;
        int i = ((JList)listselectionevent.getSource()).getSelectedIndex();
        if(i > -1)
        {
            iu iu = b.a(i);
            a.a(iu);
        }
    }
}